<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:url value='/edit' var="actionUrl"/>
<font color="red"><c:out value="${error}" /></font>
<form:form action="${actionUrl}" id="addForm" commandName="Periodical" modelAttribute="periodical" method="POST">

    <form:hidden path="id"></form:hidden><br>

    <form:label path="name">name</form:label>
    <form:input path="name" placeholder="name" class="form-control"/> <form:errors path="name"/> <br/>

    <form:label path="cost">cost</form:label>
    <form:input cssClass="form-control" path="cost" /><form:errors path="cost"/><br /><br>


    <input type="submit" value="save" class="btn btn-default form-control" />
</form:form>